package com.pharmacy.pharmacy.domain;


import java.util.Date;

/**
 * 【】对象 medicine_stock
 * 
 * @author 
 * @date 2025-05-08
 */
public class MedicineStock 
{

    /** 主键，自增ID */
    private Long id;

    /** 药品ID */
    private Long medicineId;

    /** 库存数量 */
    private Long quantity;

    /** 最后更新时间 */
    private Date lastUpdateTime;


    public MedicineStock() {
    }

    public MedicineStock(Long id, Long medicineId, Long quantity, Date lastUpdateTime) {
        this.id = id;
        this.medicineId = medicineId;
        this.quantity = quantity;
        this.lastUpdateTime = lastUpdateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return medicineId
     */
    public Long getMedicineId() {
        return medicineId;
    }

    /**
     * 设置
     * @param medicineId
     */
    public void setMedicineId(Long medicineId) {
        this.medicineId = medicineId;
    }

    /**
     * 获取
     * @return quantity
     */
    public Long getQuantity() {
        return quantity;
    }

    /**
     * 设置
     * @param quantity
     */
    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取
     * @return lastUpdateTime
     */
    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    /**
     * 设置
     * @param lastUpdateTime
     */
    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String toString() {
        return "MedicineStock{id = " + id + ", medicineId = " + medicineId + ", quantity = " + quantity + ", lastUpdateTime = " + lastUpdateTime + "}";
    }
}
